<?php include("template_top.php") ?>
<script>
function showReason(sReason){
	document.getElementById('classroom').style.display = "none";
	document.getElementById('classroom_yes').style.display = "none";
	document.getElementById('classroom_no').style.display = "none";
	document.getElementById('general').style.display = "none";
	document.getElementById('tyla').style.display = "none";
	document.getElementById('helpdesk').style.display = "none";
	document.getElementById('ce6').style.display = "none";
	document.getElementById(sReason).style.display = "block";
	return false;
}

function showHide(sShow, sHide){
	document.getElementById(sHide).style.display = "none";
	document.getElementById(sShow).style.display = "block";
	return false;
}
</script>
<h1>Please follow the script below for any and all phone calls</h1>
<b><?php echo $USER['sFname'] ?>:</b> Tech Center, <?php echo $USER['sFname'] ?> speaking, how may I assist you?<br/>
<br/>
<b>Determine Reason For Call:</b> <a href="" onclick="return showReason('classroom')">Classroom Down</a> - <a href="" onclick="return showReason('general')">General Help</a> - <a href="" onclick="return showReason('tyla')">Callback for Tyla</a> - <a href="" onclick="return showReason('helpdesk')">Callback for Helpdesk Ticket</a> - <a href="" onclick="return showReason('ce6')">Problem With CE6</a>
<br/><br/>
<div id="classroom" style="display:none">
	<form action="" method="post">
    <input type="hidden" name="reason" value="classroom" />
	<b><?php echo $USER['sFname'] ?>:</b> Is the problem effecting the current class in session? <a href="" onclick="return showHide('classroom_yes', 'classroom_no')">Yes</a> - <a href="" onclick="return showHide('classroom_no', 'classroom_yes')">No</a><br/><br/>
    <div id="classroom_yes" style="display:none">
    	<b><?php echo $USER['sFname'] ?>:</b> Alright, let me collect some information and I will sent a technicain to you right away. <br/><br/>
    	<b><?php echo $USER['sFname'] ?>:</b> May I have your first and last name please? <input type="text" name="caller" /> <br/><br/>
        <b><?php echo $USER['sFname'] ?>:</b> May I know what room you are in? <input type="text" name="building" maxlength="1" style="width:15px; text-transform:uppercase" /> - <input type="text" name="room" maxlength="4" style="width:55px; text-transform:uppercase" /> <br/><br/>
        <b><?php echo $USER['sFname'] ?>:</b> And lastly, please describe the problem once again that you are having.<br/><textarea name="problem" style="width:99%; height:100px"></textarea><br/><br/>
        <b><?php echo $USER['sFname'] ?>:</b> Alright, all the information has been submitted and I am dispatching a technician to you room now, is there anything else I can assist you with Mr./Mrs. <span id="name"></span>?<br/><br/>
        <b><?php echo $USER['sFname'] ?>:</b> Well thank you for calling and have a great day!<br/><br/>
        <input type="submit" value="Submit Classroom Down" style="width:99%; height:40px; font-size:16px" />
    </div>
    <div id="classroom_no" style="display:none">
    	<b><?php echo $USER['sFname'] ?>:</b> Alright, let me collect some information and I will submit a ticket for you to have this problem resolved after classes have ended in that room. <br/><br/>
    	<b><?php echo $USER['sFname'] ?>:</b> May I have your first and last name please? <input type="text" name="caller" /> <br/><br/>
        <b><?php echo $USER['sFname'] ?>:</b> May I have your Edison State College Portal username, so that we may send you the ticket information via email? <input type="text" name="username" /> <br/><br/>
        <b><?php echo $USER['sFname'] ?>:</b> May I know what room you are in? <input type="text" name="building" maxlength="1" style="width:15px; text-transform:uppercase" /> - <input type="text" name="room" maxlength="4" style="width:55px; text-transform:uppercase" /> <br/><br/>
        <b><?php echo $USER['sFname'] ?>:</b> And lastly, please describe the problem once again that you are having.<br/><textarea name="problem" style="width:99%; height:100px"></textarea><br/><br/>
        <b><?php echo $USER['sFname'] ?>:</b> Alright, all the information has been submitted and I have created a helpdesk ticket for you, is there anything else I can assist you with Mr./Mrs. <span id="name"></span>?<br/><br/>
        <b><?php echo $USER['sFname'] ?>:</b> Well thank you for calling and have a great day!<br/><br/>
        <input type="submit" value="Submit Ticket" style="width:99%; height:40px; font-size:16px" />
    </div>
    </form>
</div>

<div id="general" style="display:none">
	<form action="" method="post">
    <input type="hidden" name="reason" value="general" />
    </form>
</div>

<div id="tyla" style="display:none">
	<form action="" method="post">
    <input type="hidden" name="reason" value="tyla" />
    </form>
</div>

<div id="helpdesk" style="display:none">
	<form action="" method="post">
    <input type="hidden" name="reason" value="helpdesk" />
    <b><?php echo $USER['sFname'] ?>:</b> Is Tyla avaliable? <a href="" onclick="return showHide('helpdesk_yes', 'helpdesk_no')">Yes</a> - <a href="" onclick="return showHide('helpdesk_no', 'helpdesk_yes')">No</a><br/><br/>
    <div id="helpdesk_yes" style="display:none">
    	<b><?php echo $USER['sFname'] ?>:</b> May I have your first and last name please? <input type="text" name="caller" /> <br/><br/>
    	<b><?php echo $USER['sFname'] ?>:</b> Alright, in order to assist you with this problem I am going to have to transfer you to Tyla Bebon. In case you get disconnected or a problem happens during transfer her direct number is (239) 489-9074. Please hold while I transfer you to her now, thank you for calling and have a great day!<br/><br/>
        <b>Transfer Caller to Extension 1970</b><br/><br/>
        <input type="submit" value="Submit Caller Sign-In" style="width:99%; height:40px; font-size:16px" />
    </div>
    <div id="helpdesk_no" style="display:none">
    	<b><?php echo $USER['sFname'] ?>:</b> Alright, unfortunently the representative that you need to get in touch with is currently not avaliable so I will collect some information and have it submitted to her.<br/><br/>
    	<b><?php echo $USER['sFname'] ?>:</b> May I have your first and last name please? <input type="text" name="caller" /> <br/><br/>
        <b><?php echo $USER['sFname'] ?>:</b> May I have a good callback telephone number? <input type="text" name="phone" /> <br/><br/>
        <b><?php echo $USER['sFname'] ?>:</b> May I have the ticket number you are calling about? <input type="text" name="ticket" /> <br/><br/>
        <b><?php echo $USER['sFname'] ?>:</b> Is there any additional information you would like me to relay to her or just to have her call you back? <input type="text" name="ticket" /> <br/><br/>
    	<b><?php echo $USER['sFname'] ?>:</b> Alright, all the information has been submitted to Tyla and she will call yo uback as soon as she gets a chance, is there anything else I can assist you with Mr./Mrs. <span id="name"></span>?<br/><br/>
        <b><?php echo $USER['sFname'] ?>:</b> Well thank you for calling and have a great day!<br/><br/>
        <input type="submit" value="Submit Caller Sign-In and Information to Tyla" style="width:99%; height:40px; font-size:16px" />
    </div>
    </form>
</div>

<div id="ce6" style="display:none">
	<form action="" method="post">
    <input type="hidden" name="reason" value="ce6" />
    <b><?php echo $USER['sFname'] ?>:</b> Is Tyla avaliable? <a href="" onclick="return showHide('ce6_yes', 'ce6_no')">Yes</a> - <a href="" onclick="return showHide('ce6_no', 'ce6_yes')">No</a><br/><br/>
    <div id="ce6_yes" style="display:none">
    	<b><?php echo $USER['sFname'] ?>:</b> May I have your first and last name please? <input type="text" name="caller" /> <br/><br/>
    	<b><?php echo $USER['sFname'] ?>:</b> Alright, in order to assist you with this problem I am going to have to transfer you to Tyla Bebon. In case you get disconnected or a problem happens during transfer her direct number is (239) 489-9074. Please hold while I transfer you to her now, thank you for calling and have a great day!<br/><br/>
        <b>Transfer Caller to Extension 1970</b><br/><br/>
        <input type="submit" value="Submit Caller Sign-In" style="width:99%; height:40px; font-size:16px" />
    </div>
    <div id="ce6_no" style="display:none">
    	<b><?php echo $USER['sFname'] ?>:</b> May I have your first and last name please? <input type="text" name="caller" /> <br/><br/>
    	<b><?php echo $USER['sFname'] ?>:</b> Alright, in order to assist you with this problem I am going to have to transfer you to Susan DeNicola. In case you get disconnected or a problem happens during transfer her direct number is (239) 432-6782. Please hold while I transfer you to her now, thank you for calling and have a great day!<br/><br/>
        <b>Transfer Caller to Extension 6782</b><br/><br/>
        <input type="submit" value="Submit Caller Sign-In" style="width:99%; height:40px; font-size:16px" />
    </div>
    </form>
</div>
<br/>&nbsp;
<?php include("template_bot.php") ?>
